import 'package:car_map/page/res/gaps.dart';
import 'package:car_map/page/res/styles.dart';
import 'package:car_map/page/routers/fluro_navigator.dart';
import 'package:car_map/widget/load_image.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

import 'coffee_router.dart';

///咖啡grivderItem

class WidgetCoffeeGriderItem extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return InkWell(
      onTap: (){
        NavigatorUtils.push(context, CoffeeRouter.coffeeDetailsPage,
            replace: false);
      },
      child: Container(
        padding: EdgeInsets.all(5.0),
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          crossAxisAlignment: CrossAxisAlignment.center,
          children: <Widget>[
            Container(
              height: ScreenUtil().setHeight(190.0),
              width: ScreenUtil().setWidth(190.0),
              child: ClipRRect(
                borderRadius: BorderRadius.all(Radius.circular(8.0)),
                child: LoadImage(
                  'https://s2.luckincoffeecdn.com/luckywebrm/images/pimg/tea/product/product_wheel_tea_main-1.jpg',
                  fit: BoxFit.cover,
                ),
              ),
            ),
            Gaps.vGap10,
            Text('NFC鲜榨橙汁',style: TextStyles.textDarkGray14,)
          ],
        ),
      ),
    );
  }
}
